package cn.template.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.template.entity.PageResult;
import cn.template.service.UserService;

@Controller
public class Test {
	
	@Autowired
	private UserService userService;
	
	@RequestMapping("/testJSP")
	public String Test1() {
		return "NewFile";
	}
	
	@RequestMapping("/testCURD")
	@ResponseBody
	public PageResult Test2(int page, int size) {
		return userService.getUsers(page, size);
	}
}
